package com.dykj.fireFighting.web.service.impl;

import com.dykj.fireFighting.web.mapper.DevHisNbHydrantMapper;
import com.dykj.fireFighting.web.model.report.DevHisNbHydrant;
import com.dykj.fireFighting.web.utils.UUIDUtils;
import com.dykj.fireFighting.web.service.DevHisNbHydrantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * 设备报警记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-08
 */
@Service
public class DevHisNbHydrantServiceImpl implements DevHisNbHydrantService
{
    @Autowired
    private DevHisNbHydrantMapper devHisNbHydrantMapper;

    @Override
    public int insert(DevHisNbHydrant devHisNbHydrant) {
        devHisNbHydrant.setCreateTime(new Date());
        devHisNbHydrant.setId(UUIDUtils.get32UUID());
        return devHisNbHydrantMapper.insert(devHisNbHydrant);
    }
}
